#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>

#include "tperson.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Dialog; }
QT_END_NAMESPACE

class Dialog : public QDialog
{
    Q_OBJECT

private:
    TPerson *boy;
    TPerson *girl;

private slots:
    void do_ageChanged(int value);
    void do_spinChanged(int age);

    void on_btnBoyInc_clicked();
    void on_btnGirlInc_clicked();
    void on_btnMetaInfo_clicked();

    void appendTextMessage(QObject *obj);

public:
    explicit Dialog(QWidget *parent = nullptr);
    virtual ~Dialog();

private:
    Q_DISABLE_COPY(Dialog)

    Ui::Dialog *ui;
};

#endif // DIALOG_H
